/*
 * Example5BorderLayout.java  0.4.0 / 2010-10-22
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.examples;

import com.cute4j.swing.Button;
import com.cute4j.swing.Panel;
import com.cute4j.swing.Swing;
import com.cute4j.swing.layouts.BorderLayout;

/**
 * BorderLayout Example.
 */
public class Example5BorderLayout {

  public static void main(String[] args) {
    Panel panelContainer = new Panel(new BorderLayout());
    panelContainer.setName("Border Layout");
    panelContainer.add(new Button("NORTH"), BorderLayout.NORTH);
    panelContainer.add(new Button("WEST"), BorderLayout.WEST);
    panelContainer.add(new Button("SOUTH"), BorderLayout.SOUTH);
    panelContainer.add(new Button("EAST"), BorderLayout.EAST);
    Panel panel = new Panel(new BorderLayout());
    panel.add(new Button("NORTH"), BorderLayout.NORTH);
    panel.add(new Button("WEST"), BorderLayout.WEST);
    panel.add(new Button("SOUTH"), BorderLayout.SOUTH);
    panel.add(new Button("EAST"), BorderLayout.EAST);
    panel.add(new Button("CENTER"), BorderLayout.CENTER);
    panelContainer.add(panel);
    panelContainer.setSize(600, 400);
    panelContainer.setVisible(true);
    Swing.startEventLoop();
  }

}
